package com.qinggeng.project.system.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.qinggeng.framework.aspectj.lang.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户导航栏对象 user_map
 *
 * @author smallfish
 * @date 2020-12-07
 */
@Data
public class UserMap
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 导航名称 */
    @Excel(name = "导航名称")
    private String name;

    /** 导航图标 */
    @Excel(name = "导航图标")
    private String url;

    /** 界面编码 */
    @Excel(name = "界面编码")
    private String code;

    /** 参数 */
    @Excel(name = "参数")
    private String arg;


    /** 跳转类型 */
    @Excel(name = "跳转类型")
    private String isReturn;

    /** 排序 */
    @Excel(name = "排序")
    private String sort;

    private String location;

    private String screen;

    //显示类型（0=不显示 1=显示 2=仅团长显示）
    @JsonIgnore
    private Integer showType;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("url", getUrl())
            .append("code", getCode())
            .append("sort", getSort())
            .append("location", getLocation())
            .toString();
    }
}
